<template>
  <div class="musicTop">
    <img :src="playlist.coverImgUrl" alt="" class="bgimg" />
    <div class="itemLeft">
      <svg class="icon" aria-hidden="true" @click="$router.go(-1)">
        <use xlink:href="#icon-shangyiyehoutuifanhui-xianxingyuankuang"></use>
      </svg>
      <span>歌单</span>
    </div>
    <div class="itemRight">
      <svg class="icon" aria-hidden="true">
        <use xlink:href="#icon-jimu"></use>
      </svg>
      <svg class="icon" aria-hidden="true">
        <use xlink:href="#icon-sousuo"></use>
      </svg>
    </div>
  </div>
  <div class="musicContent">
    <img :src="playlist.coverImgUrl" alt="" class="topLeft" />
    <div class="topRight">
      <p style="color: #fff; font-weight: 300">{{ playlist.name }}</p>
    </div>
  </div>
</template>
<script>
export default {
  setup(props) {
    // console.log(props);
    if ((props.playlist.creator = "")) {
      props.playlist.creator = JSON.parse(
        sessionStorage.getItem().playlist
      ).creator;
    }
  },
  props: ["playlist"],
};
</script>
<style lang="less">
.musicFooter {
  width: 100%;
  height: 1rem;
  display: flex;
  justify-content: space-around;
  .icon {
    width: 1rem;
    height: 1rem;
  }
  .span1 {
    span {
      font-size: 0.3rem;
      //   color: #fff;
    }
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}
.musicContent {
  display: flex;
  width: 100%;
  height: 4rem;
  //   justify-content: center;
  .topRight {
    margin: 0.4rem 0.4rem;
    text-align: center;
    font-weight: 200;
    font-size: 0.2rem;
  }
  .topLeft {
    border-radius: 40px;
    margin: 0.4rem 0.4rem;
    width: 3rem;
    height: 3rem;
  }
}
.musicTop {
  .bgimg {
    width: 100%;
    height: 11rem;
    position: fixed;
    z-index: -1;
    filter: blur(35px); //虚化
  }
  width: 100%;
  height: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  .icon {
    width: 0.6rem;
    height: 0.6rem;
    fill: #fff;
  }
  .itemLeft,
  .itemRight {
    margin: 0 0.2rem;
    align-items: center;
    width: 25%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    span {
      font-size: 0.4rem;
      color: #fff;
    }
  }
}
</style>
